//
//  UserAgreementViewController.m
//  Copy_AiKapPu_Personal_OC
//
//  Created by taojianz on 2017/7/7.
//  Copyright © 2017年 taojianz. All rights reserved.
//

#import "UserAgreementViewController.h"
#import <WebKit/WebKit.h>

@interface UserAgreementViewController (){
    WKWebView *webView;
}




@end

@implementation UserAgreementViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    webView = [[WKWebView alloc] initWithFrame:self.view.frame];
    
    webView.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:webView];
    
    [self loadDocument:@"01爱靠谱会员条款用户端.docx" inView:webView];
    
}

- (void)loadDocument:(NSString*)documentName inView:(WKWebView*)webView{
    NSString *path = [[NSBundle mainBundle] pathForResource:@"01爱靠谱会员条款用户端" ofType:@"docx"];
    NSURL *documentUrl = [NSURL fileURLWithPath:path];
    NSURLRequest *request = [NSURLRequest requestWithURL:documentUrl];
    [webView loadRequest:request];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
